/**
 * 
 */
package com.yullage.ann;

import com.yullage.ann.network.bp.NeuralNetwork;

/**
 * @author Steven
 * 
 */
public class BootBp {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// NeuralNetwork nn = new NeuralNetwork(2, 4, 3, 1);
		NeuralNetwork nn = new NeuralNetwork(2, 8, 6, 1);
		// nn.setNetworkName("2-4-3-1");
		nn.setNetworkName("2-8-6-1");
		nn.setRandomWeightMultiplier(1);
		nn.setLearningRate(0.9);
		nn.setMomentum(0);
		nn.loadTrainingData("dataset/hw1data.dat");

		int maxRuns = 40000;
		double minErrorCondition = 0.001;
		nn.run(maxRuns, minErrorCondition);
	}

}
